/*
 * @Date: 2025-05-11 14:27:43
 * @LastEditors: 不吃芒果 syuyi_1994@163.com
 * @LastEditTime: 2025-05-21 21:39:12
 */
// API配置文件
const env = process.env.NODE_ENV || 'development';

// 不同环境的API基础URL
const CONFIG = {
  development: {
    baseURL: 'http://localhost:48080/app-api',
    timeout: 10000,
    headers: {
      'Content-Type': 'application/json'
    }
  },
  production: {
    baseURL: 'https://api.example.com/app-api',
    timeout: 15000,
    headers: {
      'Content-Type': 'application/json'
    }
  },
  test: {
    baseURL: 'https://test-api.example.com/app-api',
    timeout: 10000,
    headers: {
      'Content-Type': 'application/json'
    }
  }
};

// 导出当前环境的配置
export default {
  api: CONFIG[env],
  // 接口路径配置
  apiUrls: {
    login: '/member/auth/social-login',
    userInfo: '/member/user/get',
    updateUserInfo: '/member/user/update',
  }
};
